home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 5
/
Gekikoh Dennoh Club Vol. 5 (Japan).7z
/
Gekikoh Dennoh Club Vol. 5 (Japan) (Track 01).bin
/
games
/
kenka
/
kenka2s.lzh
/
joh_m.has
< prev
next >
Wrap
Text File
|
1998-08-28
|
8KB
|
379 lines
*---------------------------------------
*
* âWâçâôê┌ô«
*
* by Shiroh Nakaya
*
*---------------------------------------
.cpu 68000
.include OSU.H
.xdef joh_init
.xref pcg_data
.xref pal_data
.xref adpcm_data
.text
.even
*---------------------------------------
* Åëè·ë╗
*
joh_init:
move.w #6,C_H_X(a1)
move.w #32,C_H_Y(a1)
move.w #12,C_HD_X(a1)
move.w #60,C_HD_Y(a1)
move.w #40,C_MD_X1(a1)
move.w #248,C_MD_X2(a1)
move.w #48,C_MD_Y1(a1)
move.w #240,C_MD_Y2(a1)
move.w #8,C_SA_F(a1)
move.w #9,C_SSA_F(a1)
move.l #joh_motion,C_A_DT(a1)
move.l #joh_display,C_PCG_D(a1)
move.l #joh_move_data,C_JOY(a1)
move.l #joh_attack_data,C_HIT_D(a1)
move.l #joh_se_data,C_PCM_D(a1)
move.w #$0000,BG_CTRL * âXâvâëâCâgò\Īénéeée
movea.l #pcg_data+JOH,a4
movea.l a2,a6
move.w #3008-1,d1
@@:
move.l (a4)+,(a2)+
dbra d1,@b
adda.l #15744,a6
move.w #160-1,d1
@@:
move.l (a4)+,(a6)+
dbra d1,@b
move.w C_COL(a1),d1
add.w d1,d1
add.w d1,d1
lea.l joh_palette,a4
movea.l 0(a4,d1.w),a4
move.w #8-1,d1
@@:
move.l (a4)+,(a3)+
dbra d1,@b
move.w #$0200,BG_CTRL * âXâvâëâCâgò\Īéném
rts
*---------------------------------------
* ò\Ī
*
joh_display:
move.w C_M_F(a1),d0
add.w d0,d0
move.w display_tbl(pc,d0.w),d0
jmp display_tbl(pc,d0.w)
*---------------------------------------
.even
display_tbl:
.dc.w joh_move-display_tbl,joh_attack-display_tbl
.dc.w joh_hit-display_tbl,joh_win-display_tbl,joh_g-display_tbl
.dc.w joh_attack-display_tbl,joh_g-display_tbl,joh_attack-display_tbl
.dc.w joh_attack-display_tbl,0,0,0,high_s-display_tbl
*---------------------------------------
joh_move:
move.w C_CNT(a1),d0
add.w d0,d0
tst.w C_LR_F(a1)
bne @f
move.w move_tbl_right(pc,d0.w),d0
jmp move_tbl_right(pc,d0.w)
@@:
move.w move_tbl_left(pc,d0.w),d0
jmp move_tbl_left(pc,d0.w)
*---------------------------------------
.even
move_tbl_left:
.dc.w joh_n-move_tbl_left,joh_for-move_tbl_left
.dc.w joh_back-move_tbl_left
move_tbl_right:
.dc.w joh_n-move_tbl_right,joh_back-move_tbl_right
.dc.w joh_for-move_tbl_right
*---------------------------------------
joh_attack:
move.w C_AK_F(a1),d0
add.w d0,d0
move.w d0,d1
add.w d0,d0
add.w d1,d0
move.w C_AM_F(a1),d1
add.w d1,d1
add.w d1,d0
move.w attack_tbl(pc,d0.w),d0
jmp attack_tbl(pc,d0.w)
*---------------------------------------
.even
attack_tbl:
.dc.w low_s-attack_tbl,low_a-attack_tbl,low_t-attack_tbl
.dc.w mid_s-attack_tbl,mid_a-attack_tbl,mid_t-attack_tbl
.dc.w high_s-attack_tbl,high_a-attack_tbl,high_t-attack_tbl
.dc.w joh_sa_s-attack_tbl,joh_sa_a-attack_tbl,joh_sa_t-attack_tbl
*---------------------------------------
* ò╧Ég
*
joh_over_run:
move.w #5,C_SA_F(a1)
move.w #5,C_SSA_F(a1)
move.l #jo2_motion,C_A_DT(a1)
move.l #jo2_display,C_PCG_D(a1)
move.l #jo2_move_data,C_JOY(a1)
move.l #jo2_attack_data,C_HIT_D(a1)
move.l #jo2_se_data,C_PCM_D(a1)
rts
*---------------------------------------
* ò\Ī
*
jo2_display:
move.w C_M_F(a1),d0
add.w d0,d0
move.w display_tbl2(pc,d0.w),d0
jmp display_tbl2(pc,d0.w)
*---------------------------------------
.even
display_tbl2:
.dc.w high_s-display_tbl2,jo2_attack-display_tbl2
.dc.w joh_hit-display_tbl2,joh_win-display_tbl2,high_a-display_tbl2
.dc.w jo2_attack-display_tbl2
*---------------------------------------
jo2_attack:
move.w C_AK_F(a1),d0
add.w d0,d0
move.w d0,d1
add.w d0,d0
add.w d1,d0
move.w C_AM_F(a1),d1
add.w d1,d1
add.w d1,d0
move.w attack_tbl2(pc,d0.w),d0
jmp attack_tbl2(pc,d0.w)
*---------------------------------------
.even
attack_tbl2:
.dc.w mid_s-attack_tbl2,mid_a-attack_tbl2,mid_t-attack_tbl2
.dc.w mid_s-attack_tbl2,mid_a-attack_tbl2,mid_t-attack_tbl2
.dc.w mid_s-attack_tbl2,mid_a-attack_tbl2,mid_t-attack_tbl2
.dc.w joh_sa_s-attack_tbl2,joh_sa_a-attack_tbl2,joh_sa_t-attack_tbl2
.dc.w joh_ssa-attack_tbl2,joh_ssa-attack_tbl2,joh_ssa-attack_tbl2
*---------------------------------------
joh_motion:
.dc.w 4,6,13
.dc.w 7,3,20
.dc.w 30,5,25
.dc.w 5,20,24
.dc.l joh_over_run
joh_attack_data:
.dc.w 8,-24,8,8,16,16,5,0,1,10
.dc.w 12,-16,4,16,8,32,12,0,1,15
.dc.w 8,0,8,32,16,40,30,0,2,20
.dc.w 16,-24,8,8,16,16,35,0,1,24
.dc.w 0,0,4,4,8,8,100,0,2,50
joh_move_data:
.dc.w 0, 0
.dc.w 0,-2
.dc.w 0, 2
.dc.w 0, 0
.dc.w -2, 0
.dc.w -2,-2
.dc.w -2, 2
.dc.w 0, 0
.dc.w 2, 0
.dc.w 2,-2
.dc.w 2, 2
joh_se_data:
.dc.l adpcm_data+JOH01 * ÄπìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH01 * ÆåìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH02 * ï¡ìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 1864
.dc.w 0
.dc.l adpcm_data+JOH01
.dc.w $f908
.dc.w 670
.dc.w 1
.dc.l adpcm_data+JOH02
.dc.w $f908
.dc.w 1864
.dc.w 1
.dc.l 0 * ÄπìUîéö╗ÆΦÅoî╗é`écéoébél
.dc.w $b904
.dc.w 942
.dc.w 0
.dc.l adpcm_data+BUO * ÆåìUîéö╗ÆΦÅoî╗é`écéoébél
.dc.w $f908
.dc.w 942
.dc.w 0
.dc.l adpcm_data+GYOH
.dc.w $f900
.dc.w 706
.dc.w 1
.dc.l adpcm_data+BUO
.dc.w $f908
.dc.w 942
.dc.w 1
.dc.l adpcm_data+JOH04
.dc.w $f908
.dc.w 2384
.dc.w 1
.dc.l adpcm_data+DOSHU
.dc.w $f904
.dc.w 1186
.dc.w 2
.dc.l adpcm_data+DOKA * ÆåìUîéôûé╜éΦé`écéoébél
.dc.w $f908
.dc.w 896
.dc.w 3
.dc.l adpcm_data+DOKA * ï¡ìUîéôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 3
.dc.l adpcm_data+DOKA * ôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 3
.dc.l adpcm_data+JOH05
.dc.w $f908
.dc.w 4330
.dc.w 3
.dc.l adpcm_data+JOH03 * éjéné`écéoébél
.dc.w $f908
.dc.w 4476
.dc.w 4
.dc.l adpcm_data+JOH01 * Ńé┐é`écéoébél
.dc.w 670
*---------------------------------------
jo2_motion:
.dc.w 2,3,7
.dc.w 2,3,7
.dc.w 2,3,7
.dc.w 4,3,15
.dc.w 0,0,50
jo2_attack_data:
.dc.w 12,-16,4,16,8,32,8,0,1,7
.dc.w 12,-16,4,16,8,32,8,0,1,7
.dc.w 12,-16,4,16,8,32,8,0,1,7
.dc.w 16,-24,8,8,16,16,40,0,1,15
.dc.w 0,0,4,4,8,8,100,0,2,50
jo2_move_data:
.dc.w 0, 0
.dc.w 0,-4
.dc.w 0, 4
.dc.w 0, 0
.dc.w -4, 0
.dc.w -4,-4
.dc.w -4, 4
.dc.w 0, 0
.dc.w 4, 0
.dc.w 4,-4
.dc.w 4, 4
jo2_se_data:
.dc.l adpcm_data+JOH01 * ÄπìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH01 * ÄπìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH01 * ÄπìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH01 * ÆåìUîéÄnô«é`écéoébél
.dc.w $f908
.dc.w 670
.dc.w 0
.dc.l adpcm_data+JOH02
.dc.w $f908
.dc.w 1864
.dc.w 1
.dc.l 0 * ÄπìUîéö╗ÆΦÅoî╗é`écéoébél
.dc.w $b904
.dc.w 942
.dc.w 0
.dc.l 0 * ÆåìUîéö╗ÆΦÅoî╗é`écéoébél
.dc.w $f908
.dc.w 942
.dc.w 0
.dc.l 0
.dc.l 0
.dc.w 0
.dc.l adpcm_data+BUO * ÆåìUîéö╗ÆΦÅoî╗é`écéoébél
.dc.w $f908
.dc.w 942
.dc.w 0
.dc.l adpcm_data+JOH04
.dc.w $f908
.dc.w 2384
.dc.w 1
.dc.l adpcm_data+DOKA * ôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 2
.dc.l adpcm_data+DOKA * ôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 2
.dc.l adpcm_data+DOKA * ôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 2
.dc.l adpcm_data+DOKA * ôûé╜éΦé`écéoébél
.dc.w $f904
.dc.w 896
.dc.w 3
.dc.l adpcm_data+JOH05
.dc.w $f908
.dc.w 4330
.dc.w 3
.dc.l adpcm_data+JOH03 * éjéné`écéoébél
.dc.w $f908
.dc.w 4476
.dc.w 4
.dc.l adpcm_data+JOH01 * Ńé┐é`écéoébél
.dc.w 670
joh_palette:
.dc.l pal_data+JOH_C,pal_data+JOH_C+32
*---------------------------------------
.include joh_n.inc
*---------------------------------------
.include joh_am.inc
*---------------------------------------
.include joh_al.inc
*---------------------------------------
.include joh_ah.inc
*---------------------------------------
.include joh_h.inc
*---------------------------------------
.include joh_w.inc
*---------------------------------------
.include joh_g.inc
*---------------------------------------
.include joh_sa.inc
*---------------------------------------
.include joh_ssa.inc
*---------------------------------------
.end